#include "Tecnico.cpp"
#include "Studente.cpp"
#include "Docente.cpp"
#include "Data.cpp"

int main(){
  char* matr = malloc(6*sizeof(char));
  for(int i = 0; i<6; i++){
    matr[i] = 1;
  }

  Tecnico tec("Baudo", "Pippo",Data data(24,10,2010), "Cesso");
  Studente stud("Super","Topa", Data data2(18,2,1990), matr);
  Docente doc("Mario","Buanchi", Data data(12,2,1846),"2341");

  printf("%s %s %s", tec.getNome(), tec.getCognome(), tec.getCodice());
  printf("%s %s", stud.getNome(), stud.getCognome());
  printf("%s %s", doc.getNome(), doc.getCognome());
return 0;
} 
